{extend name="pc/user/layout"/}
{block name="main"}
 <div class="g-1400 g-container" id="pjax-container">
        
<div class="bg-bai b rx3">
    <div class="t-v t-t">
        <div class="c-sidebar c-sidebar-h pb5 br">
            <div class="c-sidebar-title t-v hui bb">自助购买</div>
            <ul class="c-nav click-nav">
                <li class=""><a href="{:url('pc/index',['act'=>'shop','s'=>'vip'])}" class="t-v" data-pjax>
                    <div><i class="icon icon-vip"></i></div>
                    <div>开通VIP会员</div>
                </a></li>
                <li class=""><a href="{:url('pc/index',['act'=>'shop','s'=>'peie'])}" class="t-v" data-pjax>
                    <div><i class="icon icon-shuju"></i></div>
                    <div>购买挂机配额</div>
                </a></li>
                <li class=""><a href="{:url('pc/index',['act'=>'shop','s'=>'rmb'])}" class="t-v" data-pjax>
                    <div><i class="icon icon-moneybag"></i></div>
                    <div>充值账户余额</div>
                </a></li>
				<li class="active"><a href="{:url('pc/index',['act'=>'shop','s'=>'daili'])}" class="t-v" data-pjax="">
					<div><i class="icon icon-friend"></i></div>
					<div>开通平台代理</div>
				</a></li>
				{if condition="config('sys_is_ktfz') eq 1 "}
                <li class=""><a href="{:url('pc/index',['act'=>'shop','s'=>'fz'])}" class="t-v" data-pjax="">
					<div><i class="icon icon-cascades"></i></div>
					<div>搭建高级主站</div>
				</a></li>
				{/if}
            </ul>
        </div>
<div class="c-content bl">
    <div class="g-title t-v pl4 bb">
        <div class="col-8 h t-v bold">开通平台代理</div>
        <div class="col-4 t-v t-r"></div>
    </div>
    <div class="g-content p5 f3 hui bb "><p>开通本站代理商可低价为其他用户充值商品，获取高额利润回报。</p></div>
    <div class="g-content p5">
		<div class="in-text"> 
		   <dt class="top pr5"> 
			<p class="h9 t-v">请选择</p> 
		   </dt> 
		   <dd class="top bold pr5"> 
			<p class="p3"><img class="mr3 w6 h6 v-5" src="//cdn.istt.cn/cdn/img/1.png" /><label class="i-checks i-checks-md"><input type="radio" value="3" name="ver" onclick="ajax_get_daili(3)" checked="checked" /><i></i>钻石代理</label> <span class="ml3 f3 nobold hui">赠送<font class="hong">{:config('sys_dl_give_vip_3')}</font>天秒赞会员和<font class="hong">{:config('sys_dl_give_rmb_3')}</font>元余额<font class="hong"> 后台充值{:config('sys_dl_give_z_3')}折</font></span></p>
			<p class="p3"><img class="mr3 w6 h6 v-5" src="//cdn.istt.cn/cdn/img/3.png" /><label class="i-checks i-checks-md"><input type="radio" value="2" name="ver" onclick="ajax_get_daili(2)" /><i></i>金牌代理</label> <span class="ml3 f3 nobold hui">赠送<font class="hong">{:config('sys_dl_give_vip_2')}</font>天秒赞会员和<font class="hong">{:config('sys_dl_give_rmb_2')}</font>元余额<font class="hong"> 后台充值{:config('sys_dl_give_z_2')}折</font></span></p>
			<p class="p3"><img class="mr3 w6 h6 v-5" src="//cdn.istt.cn/cdn/img/4.png" /><label class="i-checks i-checks-md"><input type="radio" value="1" name="ver" onclick="ajax_get_daili(1)" /><i></i>银牌代理</label> <span class="ml3 f3 nobold hui">赠送<font class="hong">{:config('sys_dl_give_vip_1')}</font>天秒赞会员和<font class="hong">{:config('sys_dl_give_rmb_1')}</font>元余额<font class="hong"> 后台充值{:config('sys_dl_give_z_1')}折</font></span></p> 
		   </dd> 
		</div>
        <hr/>
        <div class="h7" id="dlktjiage">-</div>
        <hr/>
        <div class="t-v">
            <div class="bold pr4">支付方式：</div>
            <div>
			{if condition="config('sys_is_alipay') eq 1"}
				<button class="btn btn-qing btn-md mt2 mb2 mr5 rx1" onclick="ajax_shop_daili('alipay');">
					<i class="icon icon-zfbpay f9 nobold mr2"></i>支付宝 [推荐]
                </button>
			{/if}
			{if condition="config('sys_is_qqpay') eq 1"}
				<button class="btn btn-qing btn-md mt2 mb2 mr5 rx1" onclick="ajax_shop_daili('qqpay');">
					<i class="icon icon-qqpay f9 nobold mr2"></i>QQ支付
                </button>
			{/if}
			{if condition="config('sys_is_wxpay') eq 1"}
				<button class="btn btn-qing btn-md mt2 mb2 mr5 rx1" onclick="ajax_shop_daili('wxpay');">
					<i class="icon icon-wxpay f9 nobold mr2"></i>微信支付
                </button>
			{/if}
            </div>
        </div>
    </div>
</div>
</div>
<div class="c-pagination o-h t-v">
    <div class="c-sidebar"></div>
    <div class="c-content h11 o-h g-page t-v bt bl">
        <div class="col-12 h pl5 t-v f3 hui">系统24小时自动处理订单，支付后自动为您开通秒赞VIP会员，无需等待。</div>
    </div>
</div>
</div>
    </div>
   {/block}
   {block name='foot'}
<script>
    function ajax_get_daili(id) {
        x.ajax('{:url('user_ajax/shop',['act'=>'price'])}', 'type=dl&id=' + id);
    }

    function ajax_shop_daili(type) {
        var ver = $('input:radio[name="ver"]:checked').val();
        x.ajax('{:url('user_ajax/shop',['act'=>'dl'])}', '&shopid=' + ver + '&shop=dl&pay_type=' + type);
    }

    $(function ($) {
        ajax_get_daili(3);
    });
</script>
    {/block}